﻿using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;

using ShootSearch.Common;
using ShootSearch.Util;


namespace ShootSearch.Parsers
{
    [Serializable]
    [TypeConverter(typeof(ExpandableConverter<PageRule>))]
    public class PageRule
    {
        public PageRuleType Type { get; set; }
        public Rule Rule { get; set; }
        public bool CanContinue { get; set; }

        public PageRule()
        {
            Rule = new Rule();
            CanContinue = false;
        }

    }

    public enum PageRuleType
    { 
        UrlOnly ,
        PageSourceOnly,
        Either,
        Both,
    }
}
